package demo2;


import java.util.Arrays;

class Solution {
    public void merge(int[] nums1, int m, int[] nums2, int n) {
//        if(m == 0) {
//            nums1 = Arrays.copyOf(nums2,n);
//            return;
//        }
        if(n == 0) {
            return;
        }
        int num = 0;
        for (int i = m; i < m+n; i++) {
                nums1[i] = nums2[num];
                num++;
            }
        Arrays.sort(nums1);
        }

    public static void main(String[] args) {
        int n = 0;
        int m = 0;
        int[] nums1 = new int[n];
        int[] nums2 = new int[m];
        Solution solution = new Solution();
        solution.merge(nums1,m,nums2,n);
    }
    }
